package com.tiancheng.trade.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 异常支付订单
 *
 * @author kellen
 * @date 2024/4/27
 */
@Data
@TableName(value = "abnormal_qr_pay_order")
public class AbnormalQrPayOrder implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    protected Long id;
    // 用户id
    private String uid;
    // 主订单号
    private String orderId;
    // 支付流水号
    private String flowId;
    // C2B 码
    private String qrNo;
    // 订单金额
    private Integer amount;
    // 支付金额
    private Integer payAmount;
    // 优惠金额
    private Integer couponAmount;
    // 商户名称
    private String merchantName;
    // 商户id
    private String merchantId;
    // 是原始的C2B消费或C2B预授权交易的凭证号
    private String voucherNum;
    // 支付时间
    private LocalDateTime payTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime createdDt;
}
